package com.example.myapplication;

import android.view.View;
import android.widget.TextView;

public class OutsideListener implements View.OnClickListener {
    private TextView note=null;
    public OutsideListener(TextView note){
        this.note=note;
    }
    @Override
    public void onClick(View v){
        this.note.setText("点击了按钮:外部类");
    }
}
